package com.mmd.manage.dao;

import com.mmd.common.entity.MmdBillRecord;
import com.mmd.common.mapper.MmdBillRecordMapper;
import com.mmd.manage.vo.QueryBillListEo;
import com.mmd.manage.vo.QueryBillListVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface MmdBillRecordDao extends MmdBillRecordMapper {
    MmdBillRecord selectMaxBill(@Param("uid") Long uid);

    List<QueryBillListVo> getUserBillList(QueryBillListEo eo);

    Integer countUserBillList(QueryBillListEo eo);

    List<QueryBillListVo> getSupBillList(QueryBillListEo eo);

    Integer countSupBillList(QueryBillListEo eo);

    List<QueryBillListVo> getUserBills(QueryBillListEo eo);

    Integer countUserBills(QueryBillListEo eo);

    List<QueryBillListVo> getAdminBills(QueryBillListEo eo);

    Integer countAdminBills(QueryBillListEo eo);

    int deleteByOrder(@Param("orderNo") String orderNo);

    MmdBillRecord selectByOrder(@Param("orderNo") String orderNo);

    BigDecimal collectAmountByOrder(@Param("orderNo") String orderNo);
}
